import { request } from "@/request";

export function getStatistics() {
  return request(`/admin/index/dataPreview`, {
    method: "post",
    data: {},
  });
}

export function getRealTimeSituation() {
  return request(`/admin/index/realTimeSituation`, {
    method: "post",
    data: {},
  });
}

export function getTrend(data) {
  return request(`/admin/index/inspectionTrend`, {
    method: "post",
    data,
  });
}

export function getDisease(data) {
  return request(`/admin/index/disease`, {
    method: "post",
    data,
  });
}

export function getDrug(data) {
  return request(`/admin/index/drug`, {
    method: "post",
    data,
  });
}
